﻿<div class="container form-horizontal">
    <update-meta property="og:title" content="Penang Realty世界地產 Submit Your Properties To Us For Sale & Rent" />
    <update-meta property="og:url" content="http://www.penangrealty.my/SaleLet" />
    <notification-panel></notification-panel><a id="notification"></a>

    <form name="myForm" novalidate>
        <div class="form-group">
            <label class="col-sm-2 control-label">Submission Type</label>
            <div class="col-sm-10">
                <select name="Mode" ng-model="property.submissionType" class="form-control" ng-selected="property.submissionType" ng-init="property.submissionType  = 'Sale'" required>
                    <option value="Sale">Sale</option>
                    <option value="Let">Let</option>
                    <option value="Check Let">Check Let</option>
                    <option value="Check Sale">Check Sale</option>
                </select>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">Address<span style="color:red">*</span></label>
            <div class="col-sm-10">
                <input class="form-control" ng-model="property.address" required placeholder="Address intend to list" maxlength="250" />
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">Name<span style="color:red">*</span></label>
            <div class="col-sm-10">
                <input class="form-control" ng-model="property.name" required placeholder="Please key in your name" maxlength="50" />
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">Phone Number<span style="color:red">*</span></label>
            <div class="col-sm-10">
                <input type="number" class="form-control" ng-model="property.phone" required placeholder="Please key in your mobile number" maxlength="20" />
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">Email Address</label>
            <div class="col-sm-10">
                <input type="email" class="form-control no_theme" ng-model="property.email" placeholder="Please key in your email" maxlength="50" />
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">Company Name</label>
            <div class="col-sm-10">
                <input class="form-control" ng-model="property.company" required placeholder="Please key in your company (If company)" maxlength="50" />
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">Remark</label>
            <div class="col-sm-10">
                <input class="form-control" ng-model="property.remark" required placeholder="Remark" maxlength="200" />
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">Price<span style="color:red">*</span></label>
            <div class="col-sm-10">
                <input type="number" class="form-control" ng-model="property.price" required placeholder="Please key in your price" maxlength="100" />
            </div>
        </div>

        <div class="form-group col-sm-12">
            <label for="inputImage">Upload Image - Select up to 3 images</label>
            <input id="inputImage" type="file" multiple accept="image/*" image="data.images" class="form-control"
                   resize-max-height="300"
                   resize-max-width="250"
                   resize-quality="0.7" />
            `Images <img ng-repeat="img in data.images" ng-src="{{img.resized.dataURL}}" />
            <!--<img ng-show="data.image" ng-src="{{data.image.url}}" type="{{data.image.file.type}}" width="100" height="100" />-->
           
        </div>

        <div class="col-sm-12">
            <div class="col-sm-10">
                <button type="submit" ng-click="clearEntry()" class="btn btn-primary ">Clear</button>
            </div>
            <div class="col-sm-2">
                <button type="submit" ng-click="save()" class="btn btn-primary pull-right">Submit</button>


            </div>
        </div>
    </form>
</div>



